import Vue from 'vue'
import Router from 'vue-router'
import inquiryIndex from 'views/inquiry-home/inquiry-index'
import inquiryOther from 'views/inquiry-home/inquiry-other/inquiry-other'
import inquirySelf from 'views/inquiry-home/inquiry-Self/inquiry-Self'
import inquiryDateils from 'views/inquiry-dateils/inquiry-details'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'inquiryIndex',
      component: inquiryIndex,
      // 重定向
      redirect: '/self',
      children: [
        {
          path: 'other',
          name: 'inquiryOther',
          component: inquiryOther
        },
        {
          path: 'self',
          name: 'inquirySelf',
          component: inquirySelf
        }
      ]
    },
    {
      path: '/dateils/:myselfData',
      name: 'inquiryDateils',
      component: inquiryDateils
    }
  ]
})
